package com.tcxhb.job.common.constants.enums;

/**
 * @Description:
 * @Auther: tcxhb
 * @Date: 2023/11/11
 */
public enum JobStatusEnum {
    stop(0, "已停止"),
    start(1, "已启动"),
    init(2, "待启动");

    public String getName() {
        return name;
    }

    public Integer getType() {
        return code;
    }


    private Integer code;
    private String name;

    public boolean eq(Integer type) {
        return this.code.equals(type);
    }

    JobStatusEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }
}
